home *** CD-ROM | disk | FTP | other *** search
- property spriteNum, sm, dualenabled
- global softdual, fs, fsim, fsrect, secondwidth, secondheight
-
- on beginSprite me
- dualenabled = 0
- sprite(spriteNum).member.hilite = 0
- sm = sprite(spriteNum).member
- softdual = 0
- if (the desktopRectList).count > 1 then
- dualenabled = 1
- fs = window("fullscreen")
- fs.windowType = 2
- fs.rect = (the desktopRectList)[2]
- case fs.rect.width of
- 800:
- fs.drawRect = rect(0, 0, 800, 600)
- 640:
- fs.drawRect = rect(0, 0, 640, 480)
- end case
- fs.open()
- fsim = fs.image
- case (the desktopRectList)[2].height of
- 480:
- fsrect = rect(-800, 0, -160, 480)
- 600:
- fsrect = rect(-800, 0, 0, 600)
- otherwise:
- fsrect = rect(-800, 0, 0, 600)
- end case
- secondwidth = (the desktopRectList)[2].width
- secondheight = (the desktopRectList)[2].height
- else
- if ((the desktopRectList)[1].width / float((the desktopRectList)[1].height)) > 2.60000000000000009 then
- fs = window("fullscreen")
- dualenabled = 1
- lerect = rect((the desktopRectList)[1].width / 2.0, 0, (the desktopRectList)[1].right, (the desktopRectList)[1].height)
- fs.rect = lerect
- fsrect = lerect
- fs.open()
- fsim = fs.image
- secondwidth = lerect.width
- secondheight = lerect.height
- end if
- end if
- end
-
- on mouseUp me
- if dualenabled = 1 then
- softdual = not softdual
- else
- sm.hilite = 0
- end if
- end
-